<?php $this->headTitle('Roles'); ?>

<?php $this->placeholder('tabs')->captureStart(); ?>
<ul>
    <li><a href=""><span>Users</span></a></li>
    <li class="active-tab"><a href=""><span>Roles</span></a></li>
</ul>
<?php $this->placeholder('tabs')->captureEnd(); ?>

<h1>Role Management</h1>
<p>Create and modify roles and their properties.</p>

<form class="mz-dl-form" method="<?php echo $this->new->getMethod(); ?>" action="<?php echo $this->new->getAction(); ?>" enctype="<?php echo $this->new->getEncType(); ?>">
<fieldset>
    <legend>Create a role:</legend>
    <dl>
        <dt>
            <label for="<?php echo $this->new->roleId->getId(); ?>">
                <?php echo $this->new->roleId->getLabel(); ?>
                <?php echo $this->new->roleId->renderErrors(); ?>
            </label>
        </dt>
        <dd>
            <?php echo $this->new->roleId->renderViewHelper(); ?>
        </dd>
    </dl>
    <dl>
        <dt>
            <label for="<?php echo $this->new->description->getId(); ?>">
                <?php echo $this->new->description->getLabel(); ?>
                <?php echo $this->new->description->renderErrors(); ?>
            </label>
        </dt>
        <dd>
            <?php echo $this->new->description->renderViewHelper(); ?>
        </dd>
        <dd>
            <?php echo $this->new->create->renderViewHelper(); ?>
        </dd>
    </dl>
</fieldset>
</form>

<form class="mz-dl-form" method="<?php echo $this->edit->getMethod(); ?>" action="<?php echo $this->edit->getAction(); ?>" enctype="<?php echo $this->edit->getEncType(); ?>">
<fieldset>
    <legend>Modify role:</legend>
    <dl>
        <dt><label for="<?php echo $this->edit->roles->getId(); ?>"><?php echo $this->edit->roles->getLabel(); ?></label></dt>
        <dd>
            <?php echo $this->edit->roles->renderViewHelper(); ?><?php echo $this->edit->select->renderViewHelper(); ?>
        </dd>
    </dl>
    <dl>
        <dt><label for="<?php echo $this->edit->description->getId(); ?>"><?php echo $this->edit->description->getLabel(); ?></label></dt>
        <dd><?php echo $this->edit->description->renderViewHelper(); ?></dd>
    </dl>
    <dl>
        <dt><label for="<?php echo $this->edit->parents->getId(); ?>"><?php echo $this->edit->parents->getLabel(); ?></label></dt>
        <dd>
            <?php echo $this->edit->parents->renderViewHelper(); ?>
        </dd>
    </dl>
    <dl>
        <dt><label>Actions</label></dt>
        <dd>
            <?php echo $this->edit->commit->renderViewHelper(); ?> <?php echo $this->edit->delete->renderViewHelper(); ?>
        </dd>
    </dl>
</fieldset>

</form>